package com.base.monitor.model.enums.code.impl.common;

import com.base.monitor.model.enums.code.BaseCode;
import lombok.AllArgsConstructor;

/**
 * @description:
 * @author: tsing
 * @create: 2020-08-09 15:05
 */
@AllArgsConstructor
public enum ServerCode implements BaseCode {
    // 6.其他(9999)
    SERVER_OCCURS_ERROR(false, 9999, "系统内部发生异常")
    ;

    private Boolean success; // 是否成功
    private int code; // 状态码
    private String message; // 操作信息

    @Override
    public boolean success() {
        return this.success;
    }

    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String message() {
        return this.message;
    }
}
